package cn.zs.middleware.infrastructure.dao;

import cn.zs.middleware.infrastructure.dao.po.Award;
import com.alicp.jetcache.anno.CacheType;
import com.alicp.jetcache.anno.Cached;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.concurrent.TimeUnit;

/**
 * @Description:
 * @Auther: zs
 * @Date: 2025/05/12/15:24
 */
@Mapper
public interface IAwardDao {
    // 查询所有奖品列表
//    @Cached(name = "awardCache:",key = "'a1'", expire = 3600, timeUnit = TimeUnit.SECONDS, cacheType = CacheType.REMOTE)
   List<Award> queryAwardList();

    Award queryAwardById(int id);

    int updateAward(Award award);
}
